<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<title>登录</title>
	<link rel="stylesheet" type="text/css" href="static/easyui/themes/metro/easyui.css">
	<link rel="stylesheet" type="text/css" href="static/easyui/themes/mobile.css">
	<link rel="stylesheet" type="text/css" href="static/easyui/themes/icon.css">
	<script type="text/javascript" src="static/easyui/jquery.min.js"></script>
	<script type="text/javascript" src="static/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="static/easyui/jquery.easyui.mobile.js"></script>
</head>

<script>
	//登陆成功后跳转页面
	function submitForm(){
		var email = $("#email").textbox("getValue");
		$.ajax({
			url:"toLogin",
			type:"post",
			async:false,
			data:{"email":email},
			/* dataType: "json", */
			success:function(respResult){
				window.location.href="index";
			},
			error:function(respResult){
				alert('失败');
			}
		});
	}


	//登陆成功后跳转页面
	function submitForm2(){
		var email = $("#email2").textbox("getValue");
		$.ajax({
			url:"toLogin",
			type:"post",
			async:false,
			data:{"email":email},
			/* dataType: "json", */
			success:function(respResult){
				window.location.href="index";
			},
			error:function(respResult){
				alert('失败');
			}
		});
	}
</script>


<body>
	<div class="easyui-navpanel" style="position:relative;padding:40px">
		<header>
			<div class="m-toolbar">
				<div class="m-title">登录</div>
			</div>
		</header>
		<form id="ff">
			<div style="margin-bottom:10px">
				<input class="easyui-textbox" name="email" style="width:100%" id="email"  value="wjrsoftware@163.com" data-options="label:'邮箱账号:',required:true,validType:'email'">
			</div>

			<div style="margin-bottom:10px">
				<input class="easyui-textbox" name="email2" style="width:100%" id="email2"  value="123@163.com" data-options="label:'邮箱账号:',required:true,validType:'email'">
			</div>

<!--			<div style="margin-bottom:10px">
				<input class="easyui-passwordbox" label="密码:" prompt="不要密码" style="width:100%">
			</div>-->
		</form>
		<div style="text-align:center;padding:5px 0">
			<a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()" style="width:100%">登陆</a>
		</div>
		<div style="text-align:center;padding:5px 0">
			<a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm2()" style="width:100%">登陆123</a>
		</div>
	</div>
</body>
</html>